namespace QDCommon.Model
{   
    public enum StateCode
    {
          RequestSucced = 1001,
          NoLogin = 2001,
          NotRegistered = 2002,
          PasswordErro = 2003,
          UserRegistered = 2004,
          UserExist = 2005,
          
          UserNotExist = 2006,
          DataModified = 2007,
          DBError = 2008,
          ParameterErro = 2009,
          RegisterFailed = 2010,
          TokenTimeOut = 2011,
          TokenInvalid = 2012,
          RefreshTokenInvalid = 2013,
          NoMoreData = 2013,
          DataNotExist=2014,
          KickOut = 2015,
          UnKnownErro = 2222,
          UploadImageFailed = 3001,
          WebChatError = 4000,
          LotteryError = 5003,
          NotExist = 6000,
          NotHandleException = 70001,
    }
    
    public class RequestResult
    {
        public RequestResult()
        {

        }
        public RequestResult(StateCode stateCode,string message,dynamic data)
        {
            StateCode = stateCode;
            Message = message;
            Data = data;
        }
        public StateCode StateCode { get; set; }
        public string Message { get; set; }
        public dynamic Data { get; set; }
    }
}